﻿    <!--Page to view scheduled conferences by student. Navigated to from the 
    view by student menuitem available through the view menu.-->
    <Page x:Class="PTCScheduler.ViewBy_StudentPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="480" d:DesignWidth="825"
	Title="Search Student">

    <Grid Style="{StaticResource PageStyle}">
        <!--Student Name label to indicate entering student name in corresponding textbox.-->
        <!--Textbox to hold student name input for searching.-->
        <!--StudentID label to indicate entering student id in corresponding textbox.-->
        <Label Content="Student ID: " Height="28" HorizontalAlignment="Left" Margin="10,17,0,0" Name="studentIDlbl" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
        
        <!--StudentID textbox to gather input of student id.-->
        <TextBox Height="23" HorizontalAlignment="Left" Margin="105,19,0,0" Name="studentIDtextbox" VerticalAlignment="Top" Width="184" MaxLength="9" />
        
        <!--Search student button to search database for records of scheduled conferences for student.-->
        <Button Content="Search" HorizontalAlignment="Left" Margin="310,12,0,0" Name="searchbystudentbtn" VerticalAlignment="Top" Style="{StaticResource ButtonStyle}" Click="searchbystudentbtn_Click" />
        
        <!--Data grid for scheduled student conferences information.-->
        <DataGrid HorizontalAlignment="Stretch" Margin="12,56,26,26" Name="dataGridStudents" VerticalAlignment="Stretch" 
                  Padding="2" Background="White" Style="{StaticResource DataGridViewStyle}" Focusable="True">
            
        </DataGrid>
        <Label Content="No conferences scheduled for student were found." Height="28" HorizontalAlignment="Left" Margin="22,130,0,0" Name="nostudentconferenceslbl" VerticalAlignment="Top" Visibility="Hidden" Style="{StaticResource LabelStyle}" />
        <Label Content="Please enter a valid Student ID." Height="28" HorizontalAlignment="Left" Margin="426,17,0,0" Name="studentwarninglbl" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Foreground="Red" Visibility="Hidden" />
        <Button Background="White" BorderBrush="#FF2D9DCF" Height="35" HorizontalAlignment="Right" Margin="0,10,90,0" Name="btnExport" VerticalAlignment="Top" Width="50" Click="btnExport_Click">
            <Image Source="/PTCScheduler_Software_Engineering;component/Images/export.jpg" />
        </Button>
        <Button Background="White" BorderBrush="#FF2D9DCF" Height="35" HorizontalAlignment="Right" Margin="0,10,30,0" Name="btnPrint" VerticalAlignment="Top" Width="49" Click="btnPrint_Click">
            <Image Source="/PTCScheduler_Software_Engineering;component/Images/print.png" />
        </Button>
    </Grid>
</Page>
